<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Date Formatting Test</title>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.30.1/moment.min.js"></script>
  </head>
  <body>
    <h1>Date Formatting Test</h1>
    <p id="formattedDate"></p>

    <video controls poster>
      <source src="./1740391480985-cb4974597fdaf38c.mp4" type="video/mp4" />
    </video>
    <!-- <script>
      // 检查 moment.js 是否加载成功
      if (typeof moment === "function") {
        // 格式化日期
        const formattedDate = moment("2025-01-14T07:23:06.000Z").format(
          "YYYY-MM-DD HH:mm:ss"
        );
        // 将格式化后的日期显示在页面上
        document.getElementById("formattedDate").innerText = formattedDate;
      } else {
        // 如果 moment.js 加载失败，显示错误信息
        document.getElementById("formattedDate").innerText =
          "Failed to load moment.js";
      }
    </script> -->
  </body>
</html>
